package com.zhongjianjian.jiaoan.jiaoyanjiekoumidengxing;

import com.zhongjianjian.jiaoan.jiaoyanjiekoumidengxing.zhujie.ForCheck;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @类名: com.zhongjianjian.jiaoan
 * @作者: lgt
 * @创建时间: 2020-02-29 17:07
 * @描述:
 **/
@RestController
public class TestMiDengXing {
    @Autowired
    private RedisTemplate<String,String> redisTemplate;

    @ForCheck
    @RequestMapping("/check/test01")
    public String test(@RequestParam("token") String token){
        System.out.println(token+"=========OK");
        return "ok";
    }
}
